home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK2.toast / Development Kits (Disc 2) / QuickTime™ VR 2.0 SDK / QTVR C⁄C++ Runtime API / Sample Code / VRShell Sample Code / VR3DObjects / Texture.h < prev    next >
Encoding:
Text File  |  1997-05-22  |  1.1 KB  |  41 lines  |  [TEXT/CWIE]

  1. //
  2. //    File:        Texture.c
  3. //
  4. //    Contains:    Support for adding a QuickTime movie or a PICT as a texture on a QD3D object.
  5. //
  6. //    Written by:    Tim Monroe
  7. //                parts modeled on BoxMoov code by Rick Evans and Robert Dierkes
  8. //
  9. //    Copyright:    © 1996 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //    Change History (most recent first):
  12. //
  13. //       <1>         12/16/96    rtm        first file
  14. //       
  15. //
  16. // TODO:
  17.  
  18. #pragma once
  19. #include <QDOffscreen.h>
  20. #include <Movies.h>
  21.  
  22. #include "QD3D.h"
  23. #include "QD3DGroup.h"
  24. #include "QD3DStorage.h"
  25.  
  26. // data structures
  27.  
  28. typedef struct {
  29.     TQ3StoragePixmap    fStoragePixmap;        // the QD3D pixmap
  30.     GWorldPtr            fpGWorld;            // the offscreen buffer into which the movie is drawn
  31.     Movie                fMovie;                // the movie source for animated textures
  32.     PicHandle            fPicture;            // the picture source for static textures
  33. } Texture, *TexturePtr, **TextureHdl;
  34.  
  35.  
  36. // function prototypes
  37.  
  38. TextureHdl            VR3DTexture_New (Boolean isTextureMovie);
  39. Boolean                VR3DTexture_Delete (TextureHdl theTexture);
  40. TQ3Status            VR3DTexture_AddToGroup (TextureHdl theTexture, TQ3GroupObject theGroup);
  41. Boolean                VR3DTexture_NextFrame (TextureHdl pAnimTxtr);